
  
var comtainer = document.getElementById('swiper_container');
if(comtainer){
  var swiper = new Swiper('.blog-slider', {
    passiveListeners: true,
    spaceBetween: 30,
    effect: 'fade',
    loop: true,
    autoplay: {
      disableOnInteraction: true,
      delay: 3000
    },
    mousewheel: false,
    // autoHeight: true,
    pagination: {
      el: '.blog-slider__pagination',
      clickable: true,
    }
  });
  comtainer.onmouseenter = function() {
    swiper.autoplay.stop();
  };
  comtainer.onmouseleave = function() {
    swiper.autoplay.start();
  }
}